package io.github.loserYa.config;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.core.env.Environment;

/**
 * 注册配置
 *
 * @author loser
 * @date 2024/4/25
 */
@EnableRabbit
public class RegisterConfiguration {

    @Bean
    public RabbitRegister rabbitRegister(ConfigurableListableBeanFactory factory, Environment environment) {
        return new RabbitRegister(factory, environment);
    }

}
